﻿using BLLConDes;
using ConDes.Modelos;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ConDes.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            PortadaModel model = new PortadaModel();
            model.Promos = new BLLPromo().TraerPromos();

            return View("_Inicio", model);
        }

        public ActionResult MenuPrincipal()
        {
            MenuPrincipalModel model = new MenuPrincipalModel();
            model.Categorias = new BLLCategoria().TraerPadres();

            return PartialView("_MenuPrincipal", model);
        }
    }
}
